package com.piece.file.support;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class FileInfo {

    public FileInfo() {
        super();
    }

    public FileInfo(String id, String name, int version, long size, String creator,
                    long create_time, String download_url, FileAcl fileAcl) {
        this.id = id;
        this.name = name;
        this.version = version;
        this.size = size;
        this.creator = creator;
        this.create_time = create_time;
        this.download_url = download_url;
        this.fileAcl = fileAcl;
    }

    private String id;              //文件id,
    private String name;            //文件名
    private int version;            //当前版本号
    private long size;              //文件大小，单位为kb
    private String creator;         //创建者id
    private String modifier;        //修改者id
    private long create_time;       //创建时间
    private long modify_time;       //修改时间
    private String download_url;    //文档下载地址
    private FileAcl fileAcl;        //文档操作权限
}
